package com.xiaodimall.beforesys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaodimall.beforesys.pojo.OrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 16436
* @description 针对表【tb_order_item(订单关联购物项表)】的数据库操作Mapper
* @createDate 2022-11-29 11:37:42
* @Entity com.xiaodimall.beforesys.pojo.OrderItem
*/
public interface OrderItemMapper extends BaseMapper<OrderItem> {


    //批量insert订单项数据
    int insertBatch(@Param("orderItems") List<OrderItem> orderItems);

    //根据订单ids获取订单项列表
    List<OrderItem> selectByOrderIds(@Param("orderIds") List<Long> orderIds);

}




